package com.java.day02;

import java.util.Scanner;

/**
 * 案例：如果身高大于180，且体重小于180,就可以当模特
 *
 * */
public class Demo1 {
    public static void main(String[] args) {
        short height;
        short weight;

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入身高:");
        height = sc.nextShort();

        System.out.println("请输入体重:");
        weight = sc.nextShort();

        if(height>180&&weight<180){
            System.out.println("可以当模特");
        }else{
            System.out.println("不能当模特");
        }
    }
}
